#!/bin/bash
# File Name   : dd.sh
# Author      : moshan
# Mail        : mo_shan@yeah.net
# Created Time: 2021-08-15 13:02:55
# Function    : 
#########################################################################
num=1
loop=1
t="$(date +%s%N)"
while :
do
    [ ${loop} -gt 5 ] && break
    dd of=tmp_${t}_${num}.log if=/dev/zero bs=1024M count=1
    [ $? -ne 0 ] && loop=$((${loop}+1)) && num=1 && continue
    sleep 2
    num=$((${num}+1))
done
